package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"size:100"`
	Password string
	Email string `gorm:"size:100;uniqueIndex"`
}

func Migrate(db *gorm.DB) error {
	return db.AutoMigrate(&User{})

}
